Skip to content

fix(core): use c_char for the aarch64-incompatible PCI bus id FFI buffer#321

Merged
xiaguan merged 1 commit into
openinfer-project:mainfrom
FeathBow:fix/aarch64-cchar-cpu-topology
Jun 10, 2026
Merged

fix(core): use c_char for the aarch64-incompatible PCI bus id FFI buffer#321
xiaguan merged 1 commit into
openinfer-project:mainfrom
FeathBow:fix/aarch64-cchar-cpu-topology

Conversation

@FeathBow

@FeathBow FeathBow commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Description

Refs #320

cpu_topology.rs built the PCI-bus-id buffer as [0i8; 32], which only type-checks where c_char = i8 (x86_64). On aarch64 (c_char = u8) openinfer-core fails to compile (E0308 at the cuDeviceGetPCIBusId / CStr::from_ptr call sites). Switch the buffer to [c_char::default(); 32].

Validated on an aarch64 node: openinfer-core compiles. x86_64 also compiles. A workspace-wide audit found no other i8-as-c_char assumptions.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • My code follows the style guidelines of this project (see docs/conventions/coding-style.md).
  • I have performed a self-review of my own code.
  • I have formatted my commits according to Commitizen conventions.
  • I have run the local test suite and all tests pass (see CLAUDE.md).

@FeathBow FeathBow marked this pull request as ready for review June 10, 2026 00:19
@xiaguan

xiaguan commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the fix

@xiaguan xiaguan merged commit 6c2fa4c into openinfer-project:main Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants